//
//  SockPacket.h
//  TcpTest_Server
//
//  Created by scarlettsun on 12-7-28.
//  Copyright (c) 2012年 tencent. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "GCDAsyncSocket.h"

#define HEARTINTERVAL 10


@interface SockPacket : NSObject

@property(assign) NSUInteger packetLen;  //content length
@property(retain) NSData * packetContent;  
@property(retain) GCDAsyncSocket * subAsynSocket;

- (SockPacket *) initSockPacket:(NSUInteger)_packLen packData:(NSData *)_packData sock:(GCDAsyncSocket * )_sock;
@end


/*heart beat bag*/
@interface HeartBeat : NSObject

@property NSInteger userId;
@property(retain) NSDate * beatTime;
@property(retain) GCDAsyncSocket * subAsynSocket;

@end
